<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />            
                <link rel="stylesheet" href="${resource(dir:'lib',file:'alerta.css')}"/>
                <link rel="stylesheet" href="${resource(dir:'css',file:'buttons.css')}" />
                <title>TvMAGAzine Plus</title>
	</head>
        
	<body>
          <g:render id="" template="/layouts/menu"/>
          <g:form controller="teste" action="saveAlert">
          <input type="hidden" name="prog" value="${alert.id}"/>
          <div id="main_">
            
            <div id="alerta1" style="width:800px;background-color:black;padding-top:20px;padding-left:20px;padding-bottom:20px;padding-right:20px">
              <b><u>ADICIONAR ALERTA:</b></u> <br/><br/>
            
            
              <u>CANAL</u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              ${alert.prog_channel.channel_name}<br/><br/>
              
              <u>PROGRAMA</u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp
              ${alert.prog_title}<br/><br/>
              
              <u>HORA</u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <g:formatDate format="yyyy-MM-dd" date="${alert.prog_start}"/>&nbsp;&nbsp;&nbsp;
              <g:formatDate format="h:mm a" date="${alert.prog_start}"/> - 
              <g:formatDate format="h:mm a" date="${alert.prog_end}"/><br/><br/><br/>
              
            
            
            <u>DESCRIÇÃO:</u><br/><br/>
            <div style="padding-left: 150px;padding-right: 20px">${alert.prog_description}</div><br/><br/>
            
            
            ALERTAR EM APROX.: &nbsp;
            <g:select name="quantoAntes" from="${['5m', '30m', '1h', '2h']}" value="${}"/>
            <br/><br/>
            
            TIPO DE ALERTA: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <g:select name="tipo" from="${['sms', 'email']}" value="${}"/><br/><br/>
            
            MSG A MANDAR: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<g:textField name="message" value="${myValue}" />
            <g:submitButton name="add" value="Save" id="addConference" width="100px"/>
        </div>    </div>    
              
          
  </g:form>
        
	</body>
</html>
